<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BookTempstorage extends Model
{
    //会员添加的书籍，等待审核的书籍信息数据
    
    protected $table = 'yds_books_tempstorage';

    protected $primaryKey = 'book_id';

    //关闭更新  'updated_at`, `created_at' 字段
    public $timestamps = false;

    //一对一关系(用户信息)
    public function hasOneUsersReg()
    {
    	return $this->hasOne('App\Models\UsersReg','uid','uid');
    }


}
